<?php
/**
 * Created by PhpStorm.
 * User: LI
 * Date: 2015/12/7
 * Time: 14:15
 */
namespace Home\Model;
use Think\Model;
class DoctorModel extends Model{
    public function addDoctor($data){
        return $this -> add($data);
    }
    public function getDoctorInfo($condition,$filed = '*'){
        return $this ->field($filed) ->where($condition) ->find();
    }
}